package cn.tedu.IocTest;

import cn.tedu.IocTest.ioc.MiniApplicationContext;
import cn.tedu.IocTest.service.UserService;

public class Test {
    public static void main(String[] args) {
        MiniApplicationContext miniApplicationContext
                = new MiniApplicationContext("src/main/resources/beans.xml");
        UserService userService = (UserService) miniApplicationContext.getBean("userService");
        userService.userMethod();
    }
}
